﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

using ZhimeiSoft.Framework.Client.Base;
using ZhimeiSoft.Framework.Common.RefectUtils;

namespace ZhimeiSoft.ShowCall.Client.App
{
    public class ShowCallApp : ClientAppBase
    {
        public override ILoginForm CreateLoginForm()
        {
            throw new NotImplementedException();
        }

        public override IMainForm CreateMainForm()
        {
            Assembly assembly = typeof(IMainForm).Assembly;
            IMainForm mainForm = (IMainForm)ReflectHelper.Instance.CreateObject(assembly,
                @"ZhimeiSoft.ShowCall.Client.Forms",
                @"ZhimeiSoft.ShowCall.Client.Forms.frmMain",
                new object[] { });
            return mainForm;
        }

        public bool Run(string jsonString)
        {
            IMainForm mainForm = this.CreateMainForm();
            mainForm.Execute(this);
            return true;
        }

    }
}
